package com.lepu.app.fun.hospital.bean;

import java.io.Serializable;
import java.util.ArrayList;

import org.json.JSONException;
import org.json.JSONObject;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.lepu.app.fun.knowledge.bean.Article;


public class Hospital implements Serializable {

	private static final long serialVersionUID = 1L;
	public ArrayList<Article> Banner;  //轮播图
    //public ArrayList<HospitalDoctor> ObstetricsGynecologyList; //专家列表
    //public ArrayList<HospitalDoctor> PediatricsList; //专家列表
    public String ObstetricsGynecologyCredits;
    public String PediatricsCredits;
//	public String BabySitter;  //月嫂证



    public static Hospital parseJsonData(String dataString) {
        String result = "";
        try {
            JSONObject jsonObject = new JSONObject(dataString);
            JSONObject obj1 = (JSONObject) jsonObject.get("Result");
            JSONObject obj2 = (JSONObject) obj1.get("DetailInfo");

            result = obj2.toString();
        } catch (JSONException e) {
            e.printStackTrace();
        }

        Gson gson = new Gson();
        Hospital hospital = gson.fromJson(result, new TypeToken<Hospital>() {
        }.getType());
        return hospital;
    }
}
